package com.pengxun.manager.service.system.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pengxun.manager.dao.system.SysUserLogDao;
import com.pengxun.manager.model.system.SysUserLog;
import com.pengxun.manager.service.system.SysUserLogService;
import com.szeastroc.common.jdbc.page.Page;


@Service
public class SysUserLogServiceImpl implements SysUserLogService{

	@Resource
	private SysUserLogDao sysUserLogDao;
	
	@Override
	public int insert(SysUserLog sysUserLog) {
		return sysUserLogDao.insert(sysUserLog);
	}
	
    @Override
    public int update(SysUserLog sysUserLog){
        return sysUserLogDao.update(sysUserLog);
    }
   	
    @Override
    public int delete(Integer id){
       return sysUserLogDao.delete(id);
 	}
   
    @Override
    public Page findByPage(Page page){
    	 List<SysUserLog> sysUserLogs = sysUserLogDao.findByPage(page);
    	 page.setData(sysUserLogs);
         return page;
    }
    
    public SysUserLog findById(Integer id){
          return sysUserLogDao.findById(id);
    };

	
}
